from conftest import login_token7
import pytest,requests


class Test_a3mall:
    # 收藏商品
    def test_a3mall_01(self,login_token7):
        token=login_token7

        url='http://10.59.9.14:7003/api/goods/favorite?id=1000136'

        headers={
            'Auth-Token':str(token),
            'Content-Type': 'application/json'
        }

        data={
            'id':1000136,
        }

        r=requests.get(url=url,json=data,headers=headers)
        r_json=r.json()
        print(r_json)

        #查询收藏商品
    def test_a3mall_02(self,login_token7):
        token=login_token7

        url='http://10.59.9.14:7003/api/ucenter/favorite?page=1'

        headers={
            'Auth-Token':str(token),
            'Content-Type': 'application/json'
        }

        data={
            'page':1
        }

        r=requests.get(url=url,params=data,headers=headers)
        r_json=r.json()
        print(r_json)